﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EarringsRecommendationWeb
{
    public partial class Signup : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //base.Page_Load(sender, e);

            Member mem = Session["member"] as Member;

            if (mem != null)
            {
                //register hidden control
                Response.Write("<input id='hidden-email' type='hidden' value='" + mem.Email + "'>");
                Response.Write("<input id='hidden-name' type='hidden' value='" + mem.Name + "'>");

                ClientScript.RegisterArrayDeclaration("membersignup", JsonConvert.SerializeObject(mem));
            }
        }
    }
}